<?php

namespace App\Services;

use App\Exceptions\AdminInvalidRequestException;
use App\Helper\KeysHandler;
use App\Models\Config;
use App\Models\Material;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Storage;

class ConfigService
{


    public static function all()
    {
        return Cache::remember(KeysHandler::CONFIG, now()->addDays(15), function () {
            return Config::all();
        });
    }
}
